#define kHasDirectConnection 3 /* True implies that driver can talk directly to device (e.g. serial data link via sense lines) */
#define kIsMonoDev 4 /* Says whether there’s an RGB (0) or Monochrome (1) connection. */
#define kUncertainConnection 5 /* There may not be a display (no sense lines?). */
#define kTaggingInfoNonStandard 6 /* Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). */
#define kReportsDDCConnection 7 /* Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). */
#define kHasDDCConnection 8 /* Card has ddc connect now. */
#define kConnectionInactive 9 /* Set when the connection is NOT currently active (generally used in a multiconnection environment). */
#define kDependentConnection 10 /* Set when some ascpect of THIS connection depends on another (will generally be set in a kModeSimulscan environment). */
#define kBuiltInConnection 11 /* Set when connection is KNOWN to be built-in (this is not the same as kHasDirectConnection). */
#define kOverrideConnection 12 /* Set when the reported connection is not the true one, but is one that has been forced through a SetConnection call */
#define kFastCheckForDDC 13 /* Set when all 3 are true: 1) sense codes indicate DDC display could be attached 2) attempted fast check 3) DDC failed */
#define kUnknownConnect 1 /* Not sure how we’ll use this, but seems like a good idea. */
#define kPanelConnect 2 /* For use with fixed-in-place LCD panels. */
#define kPanelTFTConnect 2 /* Alias for kPanelConnect */
#define kFixedModeCRTConnect 3 /* For use with fixed-mode (i.e., very limited range) displays. */
#define kPALConnect 12 /* PAL ST (default), FF, STconv, FFconv */
#define kHRConnect 13 /* Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) */
#define kPanelFSTNConnect 14 /* For use with fixed-in-place LCD FSTN (aka “Supertwist”) panels */
#define kMonoTwoPageConnect 15 /* 1152x870 Apple color two-page display */
#define kColorTwoPageConnect 16 /* 1152x870 Apple B&W two-page display */
#define kColor16Connect 17 /* 832x624 Apple B&W two-page display */
#define kColor19Connect 18 /* 1024x768 Apple B&W two-page display */
#define kGenericCRT 19 /* Indicates nothing except that connection is CRT in nature. */
#define kGenericLCD 20 /* Indicates nothing except that connection is LCD in nature. */
#define kDDCConnect 21 /* DDC connection, always set kHasDDCConnection */
#define kModeValid 0 /* Says that this mode should NOT be trimmed. */
#define kModeSafe 1 /* This mode does not need confirmation */
#define kModeDefault 2 /* This is the default mode for this type of connection */
#define kModeShowNow 3 /* This mode should always be shown (even though it may require a confirm) */
#define kModeNotResize 4 /* This mode should not be used to resize the display (eg. mode selects a different connector on card) */
#define kModeRequiresPan 5 /* This mode has more pixels than are actually displayed */
#define kModeInterlaced 6 /* This mode is interlaced (single pixel lines look bad). */
#define kModeShowNever 7 /* This mode should not be shown in the user interface. */
#define kModeSimulscan 8 /* Indicates that more than one display connection can be driven from a single framebuffer controller. */
#define kModeNotPreset 9 /* Indicates that the timing is not a factory preset for the current display (geometry may need correction) */
#define kModeBuiltIn 10 /* Indicates that the display mode is for the built-in connect only (on multiconnect devices like the PB 3400) Only the driver is quieried */
#define kDepthDependent 0 /* Says that this depth mode may cause dependent changes in other framebuffers (and . */
#define kResolutionHasMultipleDepthSizes 0 /* Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) */
/* Power Mode constants for VDPowerStateRec.powerState. Note the numeric order does not match the power state order */
#define kAVPowerOff 0 /* Power fully off */
#define kAVPowerStandby 1
#define kAVPowerSuspend 2
#define kAVPowerOn 3
/* Power Mode masks and bits for VDPowerStateRec.powerFlags. */
#define kPowerStateNeedsRefresh 0 /* When leaving this power mode, a display will need refreshing */
#define kPowerStateSleepAwareBit 1 /* if gestaltPCCardDockingSelectorFix, Docking mgr checks this bit before checking kPowerStateSleepAllowedBit */
#define kPowerStateSleepForbiddenBit 2 /* if kPowerStateSleepAwareBit, Docking mgr checks this bit before sleeping */
#define kPowerStateNeedsRefreshMask 0x00000001
#define kPowerStateSleepAwareMask 0x00000002
#define kPowerStateSleepForbiddenMask 0x00000004
/* Control Codes */
#define cscReset 0
#define cscKillIO 1
#define cscSetMode 2
#define cscSetEntries 3
#define cscSetGamma 4
#define cscGrayPage 5
#define cscGrayScreen 5
#define cscSetGray 6
#define cscSetInterrupt 7
#define cscDirectSetEntries 8
#define cscSetDefaultMode 9
#define cscSwitchMode 10
#define cscSetSync 11
#define cscSavePreferredConfiguration 16
#define cscSetHardwareCursor 22
#define cscDrawHardwareCursor 23
#define cscSetConvolution 24
#define cscSetPowerState 25
#define cscPrivateControlCall 26 /* Takes a VDPrivateSelectorDataRec */
#define cscSetMultiConnect 28 /* From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core. */
#define cscSetClutBehavior 29 /* Takes a VDClutBehavior */
#define cscUnusedCall 127 /* This call used to expend the scrn resource. Its imbedded data contains more control info */
/* Status Codes */
#define cscGetMode 2
#define cscGetEntries 3
#define cscGetPageCnt 4
#define cscGetPages 4 /* This is what C&D 2 calls it. */
#define cscGetPageBase 5
#define cscGetBaseAddr 5 /* This is what C&D 2 calls it. */
#define cscGetGray 6
#define cscGetInterrupt 7
#define cscGetGamma 8
#define cscGetDefaultMode 9
#define cscGetCurMode 10
#define cscGetSync 11
#define cscGetConnection 12 /* Return information about the connection to the display */
#define cscGetModeTiming 13 /* Return timing info for a mode */
#define cscGetModeBaseAddress 14 /* Return base address information about a particular mode */